---
layout: default
title: Home
menu: no
---
<!--
<h1 class="page-title">文章列表</h1>
-->
<div class="home">
<div class="post-list">
{% for post in paginator.posts %}
<a style="text-decoration:none"  href="{{ post.url | prepend: site.baseurl }}">
      {% include post-cards.html %}
</a>
{% endfor %}
</div>

<div class="pagination">
{% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">上一页</a>
{% endif %}

{% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
      <span class="active">{{ page }}</span>
    {% elsif page == 1 %}
      <a href="/{{ 'index.html' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
    {% else %}
      <a href="/{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
    {% endif %}
{% endfor %}

{% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">下一页</a>
{% endif %}
</div>

</div>


